import Vue from 'vue'
import VueRouter from 'vue-router'
import Father from '../components/father'
import Detail from '../components/detail.vue'
Vue.use(VueRouter)

const routes = [{
  path: '/',
  component: Father
},
{
  path: '/detail',
  component: Detail
}
]

const router = new VueRouter({
  routes
})

export default router